package com.zhupanlin.zhyl.hosp.repository;

import com.zhupanlin.zhyl.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/11/23 16:30
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital, String> {

    // 判断是否存在数据
    Hospital getHospitalByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String hosname);
}
